package com.eorchis.module.trainingplan.ui.commond;

import java.io.Serializable;
import java.sql.Blob;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.eorchis.core.annotation.AuditIgnore;
import com.eorchis.core.annotation.AuditProperty;
import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommonField;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.trainingplan.domain.TrainingPlanFileZZB;
import com.eorchis.module.util.DateUtil;
import com.eorchis.utils.utils.PropertyUtil;

/**
 * Title: TrainingPlanValidCommond<br>
 * Description: 培训计划ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * 
 * @author RongSL
 * @createDate 2016-07-12
 * @version $Revision$
 */
public class TrainingPlanFileZZBValidCommond implements ICommond, ICommonField {

	private TrainingPlanFileZZB trainingPlanFileZZB;
	private String createDateStr;
	private String startPlanDateStr;// 计划开始时间
	private String endPlanDateStr;// 计划结束时间

	// private String beginDateStr;//开始时间
	// private String endDateStr;//结束时间
	// private String enterBeginTimeStr;//报名开始时间

	// public String getBeginDateStr() {
	// return beginDateStr;
	// }
	//
	// public void setBeginDateStr(String beginDateStr) {
	// this.beginDateStr = beginDateStr;
	// trainingPlanFile.setBeginDate(DateUtil.StringToDateYM(beginDateStr));
	// }
	//
	// public String getEndDateStr() {
	// return endDateStr;
	// }

	public Date getissuedDate() {
		return trainingPlanFileZZB.getIssuedDate();
	}

	public void setissuedDate(Date issuedDate) {
		trainingPlanFileZZB.setIssuedDate(issuedDate);
	}

	// public void setEndDateStr(String endDateStr) {
	// this.endDateStr = endDateStr;
	// trainingPlanFile.setEndDate(DateUtil.StringToDateYM(endDateStr));
	// }
	//
	// public String getEnterBeginTimeStr() {
	// return enterBeginTimeStr;
	// }
	//
	// public void setEnterBeginTimeStr(String enterBeginTimeStr) {
	// this.enterBeginTimeStr = enterBeginTimeStr;
	// trainingPlanFile.setEnterBeginTime(DateUtil.StringToDateYM(enterBeginTimeStr));
	// }

	public TrainingPlanFileZZBValidCommond() {
		trainingPlanFileZZB = new TrainingPlanFileZZB();
	}

	public TrainingPlanFileZZBValidCommond(TrainingPlanFileZZB trainingPlanFileZZB) {
		this.trainingPlanFileZZB = trainingPlanFileZZB;
	}

	@AuditIgnore
	public Serializable getEntityID() {
		return trainingPlanFileZZB.getPlanId();
	}

	public IBaseEntity toEntity() {
		return trainingPlanFileZZB;
	}

	/**
	 * 获取ID
	 */
	@AuditProperty(value = "ID")
	public String getPlanId() {
		return trainingPlanFileZZB.getPlanId();
	}

	/**
	 * 设置ID
	 */
	public void setPlanId(String planId) {
		trainingPlanFileZZB.setPlanId(planId);
	}

	/**
	 * 获取培训计划编号
	 */
	@AuditProperty(value = "培训计划编号")
	public String getApplyNum() {
		return trainingPlanFileZZB.getApplyNum();
	}

	/**
	 * 设置培训计划编号
	 */
	public void setApplyNum(String applyNum) {
		trainingPlanFileZZB.setApplyNum(applyNum);
	}

	/**
	 * 获取专题名称
	 */
	@AuditProperty(value = "专题名称")
	public String getClassName() {
		return trainingPlanFileZZB.getClassName();
	}

	/**
	 * 设置专题名称
	 */
	public void setClassName(String className) {
		trainingPlanFileZZB.setClassName(className);
	}

	/**
	 * 获取办班目的
	 */
	@AuditProperty(value = "办班目的")
	public String getClassObjective() {
		return trainingPlanFileZZB.getClassObjective();
	}

	/**
	 * 设置办班目的
	 */
	public void setClassObjective(String classObjective) {
		trainingPlanFileZZB.setClassObjective(classObjective);
	}

	/**
	 * 获取培训内容
	 */
	@AuditProperty(value = "培训内容")
	public String getClassValues() {
		return trainingPlanFileZZB.getClassValues();
	}

	/**
	 * 设置培训内容
	 */
	public void setClassValues(String classValues) {
		trainingPlanFileZZB.setClassValues(classValues);
	}

	/**
	 * 获取调训人数
	 */
	@AuditProperty(value = "调训人数")
	public Integer getPlanNum() {
		return trainingPlanFileZZB.getPlanNum();
	}

	/**
	 * 设置调训人数
	 */
	public void setPlanNum(Integer planNum) {
		trainingPlanFileZZB.setPlanNum(planNum);
	}

	/**
	 * 获取学制
	 */
	@AuditProperty(value = "学制")
	public Integer getPlanDay() {
		return trainingPlanFileZZB.getPlanDay();
	}

	/**
	 * 设置学制
	 */
	public void setPlanDay(Integer planDay) {
		trainingPlanFileZZB.setPlanDay(planDay);
	}

	// /**
	// * 获取开班日期
	// */
	// @AuditProperty(value="开班日期")
	// public Date getBeginDate() {
	// return trainingPlanFile.getBeginDate();
	// }
	// /**
	// * 设置开班日期
	// */
	// public void setBeginDate(Date beginDate) {
	// if(PropertyUtil.objectNotEmpty(beginDate)){
	// this.beginDateStr=DateUtil.DateToStringYM(beginDate);
	// }
	// trainingPlanFile.setBeginDate(beginDate);
	// }
	// /**
	// * 获取结班日期
	// */
	// @AuditProperty(value="结班日期")
	// public Date getEndDate() {
	// return trainingPlanFile.getEndDate();
	// }
	// /**
	// * 设置结班日期
	// */
	// public void setEndDate(Date endDate) {
	// if(PropertyUtil.objectNotEmpty(endDate)){
	// this.endDateStr=DateUtil.DateToStringYM(endDate);
	// }
	// trainingPlanFile.setEndDate(endDate);
	// }
	// /**
	// * 获取报名开始时间
	// */
	// @AuditProperty(value="报名开始时间")
	// public Date getEnterBeginTime() {
	// return trainingPlanFile.getEnterBeginTime();
	// }
	// /**
	// * 设置报名开始时间
	// */
	// public void setEnterBeginTime(Date enterBeginTime) {
	// if(PropertyUtil.objectNotEmpty(enterBeginTime)){
	// this.enterBeginTimeStr=DateUtil.DateToStringYM(enterBeginTime);
	// }
	// trainingPlanFile.setEnterBeginTime(enterBeginTime);
	// }
	/**
	 * 获取合办部委
	 */
	@AuditProperty(value = "合办部委")
	public String getJointName() {
		return trainingPlanFileZZB.getJointName();
	}

	/**
	 * 设置合办部委
	 */
	public void setJointName(String jointName) {
		trainingPlanFileZZB.setJointName(jointName);
	}

	/**
	 * 获取承办部委
	 */
	@AuditProperty(value = "承办部委")
	public String getUndertakeName() {
		return trainingPlanFileZZB.getUndertakeName();
	}

	/**
	 * 设置承办部委
	 */
	public void setUndertakeName(String undertakeName) {
		trainingPlanFileZZB.setUndertakeName(undertakeName);
	}

	/**
	 * 获取计划时间
	 */
	@AuditProperty(value = "计划时间")
	public String getPlanDate() {
		return trainingPlanFileZZB.getPlanDate();
	}

	/**
	 * 设置计划时间
	 */
	public void setPlanDate(String planDate) {
		trainingPlanFileZZB.setPlanDate(planDate);
	}

	/**
	 * 获取调训对象
	 */
	@AuditProperty(value = "调训对象")
	public String getTrainingObject() {
		return trainingPlanFileZZB.getTrainingObject();
	}

	/**
	 * 设置调训对象
	 */
	public void setTrainingObject(String trainingObject) {
		trainingPlanFileZZB.setTrainingObject(trainingObject);
	}

	/**
	 * 获取驳回原因
	 */
	@AuditProperty(value = "驳回原因")
	public String getRejectReason() {
		return trainingPlanFileZZB.getRejectReason();
	}

	/**
	 * 设置驳回原因
	 */
	public void setRejectReason(String rejectReason) {
		trainingPlanFileZZB.setRejectReason(rejectReason);
	}

	/**
	 * 获取培训地点
	 */
	@AuditProperty(value = "培训地点")
	public String getTrainingAddress() {
		return trainingPlanFileZZB.getTrainingAddress();
	}

	/**
	 * 设置培训地点
	 */
	public void setTrainingAddress(String trainingAddress) {
		trainingPlanFileZZB.setTrainingAddress(trainingAddress);
	}

	/**
	 * 获取下发状态
	 */
	@AuditProperty(value = "下发状态")
	public Integer getIssuedState() {
		return trainingPlanFileZZB.getIssuedState();
	}

	/**
	 * 设置下发状态
	 */
	public void setIssuedState(Integer issuedState) {
		trainingPlanFileZZB.setIssuedState(issuedState);
	}

	/**
	 * 获取发布状态
	 */
	@AuditProperty(value = "发布状态")
	public Integer getPublishState() {
		return trainingPlanFileZZB.getPublishState();
	}

	/**
	 * 设置发布状态
	 */
	public void setPublishState(Integer publishState) {
		trainingPlanFileZZB.setPublishState(publishState);
	}

	/**
	 * 获取发布日期
	 */
	@AuditProperty(value = "发布日期")
	public Date getPublishDate() {
		return trainingPlanFileZZB.getPublishDate();
	}

	/**
	 * 设置发布日期
	 */
	public void setPublishDate(Date publishDate) {
		trainingPlanFileZZB.setPublishDate(publishDate);
	}

	/**
	 * 获取审核状态
	 */
	@AuditProperty(value = "审核状态")
	public Integer getAuditState() {
		return trainingPlanFileZZB.getAuditState();
	}

	/**
	 * 设置审核状态
	 */
	public void setAuditState(Integer auditState) {
		trainingPlanFileZZB.setAuditState(auditState);
	}

	/**
	 * 获取审核日期
	 */
	@AuditProperty(value = "审核日期")
	public Date getAuditDate() {
		return trainingPlanFileZZB.getAuditDate();
	}

	/**
	 * 设置审核日期
	 */
	public void setAuditDate(Date auditDate) {
		trainingPlanFileZZB.setAuditDate(auditDate);
	}

	public Date getCreateDate() {
		return trainingPlanFileZZB.getCreateDate();
	}

	public void setCreateDate(Date createDate) {
		if (PropertyUtil.objectNotEmpty(createDate)) {
			this.setCreateDateStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(createDate));
		}
		trainingPlanFileZZB.setCreateDate(createDate);
	}

	@Override
	public Integer getActiveState() {
		return trainingPlanFileZZB.getActiveState();
	}

	@Override
	public void setActiveState(Integer activeState) {
		trainingPlanFileZZB.setActiveState(activeState);
	}

	public Double getVersion() {
		return trainingPlanFileZZB.getVersion();
	}

	public void setVersion(Double version) {
		trainingPlanFileZZB.setVersion(version);
	}

	public Blob getPlanApply() {
		return trainingPlanFileZZB.getPlanApply();
	}

	public void setPlanApply(Blob planApply) {
		trainingPlanFileZZB.setPlanApply(planApply);
	}

	public String getLinkMan() {
		return trainingPlanFileZZB.getLinkMan();
	}

	public void setLinkMan(String linkMan) {
		this.trainingPlanFileZZB.setLinkMan(linkMan);
	}

	public String getLinkMode() {
		return trainingPlanFileZZB.getLinkMode();
	}

	public void setLinkMode(String linkMode) {
		this.trainingPlanFileZZB.setLinkMode(linkMode);
	}

	public Date getOperationDate() {
		return trainingPlanFileZZB.getOperationDate();
	}

	public void setOperationDate(Date operationDate) {
		this.trainingPlanFileZZB.setOperationDate(operationDate);
	}

	public String getCreateDateStr() {
		return createDateStr;
	}

	public void setCreateDateStr(String createDateStr) {
		this.createDateStr = createDateStr;
	}

	public String getUndertakeId() {
		return trainingPlanFileZZB.getUndertakeId();
	}

	public void setUndertakeId(String undertakeId) {
		this.trainingPlanFileZZB.setUndertakeId(undertakeId);
	}

	public String getJointId() {
		return trainingPlanFileZZB.getJointId();
	}

	public void setJointId(String jointId) {
		this.trainingPlanFileZZB.setJointId(jointId);
	}

	public String getFax() {
		return this.trainingPlanFileZZB.getFax();
	}

	public void setFax(String fax) {
		this.trainingPlanFileZZB.setFax(fax);
	}

	public Date getStartPlanDate() {
		return trainingPlanFileZZB.getStartPlanDate();
	}
	public void setStartPlanDate(Date startPlanDate) {
		if (PropertyUtil.objectNotEmpty(startPlanDate)) {
			this.startPlanDateStr=DateUtil.DateToStringYMD(startPlanDate);
		}
		this.trainingPlanFileZZB.setStartPlanDate(startPlanDate);
	}
	public Date getEndPlanDate() {
		return trainingPlanFileZZB.getEndPlanDate();
	}
	public void setEndPlanDate(Date endPlanDate) {
		if (PropertyUtil.objectNotEmpty(endPlanDate)) {
			this.endPlanDateStr=DateUtil.DateToStringYMD(endPlanDate);
		}
		this.trainingPlanFileZZB.setEndPlanDate(endPlanDate);
	}
	
	public String getStartPlanDateStr() {
		return startPlanDateStr;
	}

	public void setStartPlanDateStr(String startPlanDateStr) {
		if(PropertyUtil.objectNotEmpty(startPlanDateStr)){
			this.trainingPlanFileZZB.setStartPlanDate(DateUtil.StringToDateYMD(startPlanDateStr));
		}
		this.startPlanDateStr = startPlanDateStr;
	}

	public String getEndPlanDateStr() {
		return endPlanDateStr;
	}

	public void setEndPlanDateStr(String endPlanDateStr) {
		if(PropertyUtil.objectNotEmpty(endPlanDateStr)){
			this.trainingPlanFileZZB.setEndPlanDate(DateUtil.StringToDateYMD(endPlanDateStr));
		}
		this.endPlanDateStr = endPlanDateStr;
	}

}
